package com.cody.service;

import com.cody.entity.Comment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Cody
 * @date 2021/4/9 - 21:15
 */
public interface CommentService {
    List<Comment> queryAllComment();

    List<Comment> queryAllCommentByQuestionId(Integer questionId);
    List<Comment> queryCommentByKeyword( String keyword);
    List<Comment> queryAllCommentByNumber(String number);
    Comment queryCommentByCommentId(Integer commentId);
    boolean insertComment(Comment comment);
    boolean delCommentByCommentId(Integer commentId);
    boolean updCommentInfo(Comment comment);
}
